package com.healthmgmt.app.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.healthmgmt.common.annotation.Excel;
import com.healthmgmt.common.core.domain.BaseEntity;

/**
 * 我的宝贝对象 hm_baby
 * 
 * @author ruoyi
 * @date 2025-06-29
 */
public class Baby extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 宝贝ID */
    private Long babyId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 宝贝照片 */
    @Excel(name = "宝贝照片")
    private String picUrl;

    /** 宝贝名称 */
    @Excel(name = "宝贝名称")
    private String babyName;

    /** 性别(0男1女) */
    @Excel(name = "性别(0男1女)")
    private Integer gender;

    /** 出生日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出生日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birthDate;

    public void setBabyId(Long babyId) 
    {
        this.babyId = babyId;
    }

    public Long getBabyId() 
    {
        return babyId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setPicUrl(String picUrl) 
    {
        this.picUrl = picUrl;
    }

    public String getPicUrl() 
    {
        return picUrl;
    }

    public void setBabyName(String babyName) 
    {
        this.babyName = babyName;
    }

    public String getBabyName() 
    {
        return babyName;
    }

    public void setGender(Integer gender) 
    {
        this.gender = gender;
    }

    public Integer getGender() 
    {
        return gender;
    }

    public void setBirthDate(Date birthDate) 
    {
        this.birthDate = birthDate;
    }

    public Date getBirthDate() 
    {
        return birthDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("babyId", getBabyId())
            .append("userId", getUserId())
            .append("picUrl", getPicUrl())
            .append("babyName", getBabyName())
            .append("gender", getGender())
            .append("birthDate", getBirthDate())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
